# 春节给多个不同的人发新年祝福信息, 且年份和名字不同, 可随意更换

year = input("请输入年份生肖: ")
contacts = ["老王", "老马", "老郭", "老魏", "赖总"]
category = int(input("请输入要看的格式化种类: "))

# 两种方式进行格式化字符串  "内容".format 和 f"内容"
for name in contacts:
    if category == 1:
        message_content = '''
律回春渐, 新元肇启.
新岁甫至, 福气东来.
金{0}贺岁, 欢乐祥瑞.
金{0}敲门, 五福临门.
给{1}及家人拜年啦!
新春快乐, {0}年大吉!'''.format(year, name)
        print(message_content)

    elif category == 2:
        message_content ='''
律回春渐, 新元肇启.
新岁甫至, 福气东来.
金{current_year}贺岁, 欢乐祥瑞.
金{current_year}敲门, 五福临门.
给{receiver_name}及家人拜年啦!
新春快乐, {current_year}年大吉!'''.format(current_year = year, receiver_name = name)
        print(message_content)

    elif category == 3:
        message_content=f'''
律回春渐, 新元肇启.
新岁甫至, 福气东来.
金{year}贺岁, 欢乐祥瑞.
金{year}敲门, 五福临门.
给{name}及家人拜年啦!
新春快乐, {year}年大吉!'''
        print(message_content)






